* search.c (scan_buffer): Calculate end byte position just once.
authorDmitry Antipov <dmantipov@yandex.ru>
Fri, 8 Feb 2013 14:44:53 +0000 (18:44 +0400)
committerDmitry Antipov <dmantipov@yandex.ru>
Fri, 8 Feb 2013 14:44:53 +0000 (18:44 +0400)
commit6584fd8c55d3b03f6cea7a6da5e2ae8f7cfdb279
tree379e28a9021d6f4b64e5546ba569349a0846dfb5
parent9540578cd7151fa0d2396c90534d38ff8a288a16
* search.c (scan_buffer): Calculate end byte position just once.
(scan_newline): Do not recalculate start_byte.
(search_command): Use eassert.
* syntax.c (struct lisp_parse_state): New member location_byte.
(scan_sexps_forward): Record from_byte and avoid redundant
character to byte position calculation ...
(Fparse_partial_sexp): ... here.  Break too long line.
src/ChangeLog
src/search.c
src/syntax.c